package com.lv.service.event

import androidx.annotation.Keep
import com.jeremyliao.liveeventbus.core.LiveEvent
import com.lv.common.bean.MIPushBean
import com.lv.common.im.push.OfflineMessageBean
import com.tencent.imsdk.v2.V2TIMConversation

/**
 * 作者： ygx
 * 创建日期：2023/6/27 4:34 PM
 * 签名： 天行健，君子以自强不息；地势坤，君子以厚德载物。
 * -    _              _           _     _   ____  _             _ _
 * -   / \   _ __   __| |_ __ ___ (_) __| | / ___|| |_ _   _  __| (_) ___
 * -  / _ \ | '_ \ / _` | '__/ _ \| |/ _` | \___ \| __| | | |/ _` | |/ _ \
 * - / ___ \| | | | (_| | | | (_) | | (_| |  ___) | |_| |_| | (_| | | (_) |
 * -/_/   \_\_| |_|\__,_|_|  \___/|_|\__,_| |____/ \__|\__,_|\__,_|_|\___/
 * <p>
 * You never know what you can do until you try !
 * ----------------------------------------------------------------
 * 描述：
 */
@Keep
data class HomeRefreshEvent(
    val message: V2TIMConversation? = null,
    val offlineMessage: OfflineMessageBean? = null,
    val pushMessage: MIPushBean? = null,
) : LiveEvent

@Keep
data class HomeTabChangeEvent(
    val tag: String? = null,
    val tab: Int = 0
) : LiveEvent
@Keep
data class ClosePageEvent(
    val tag: String? = null,
    val tab: Int = 0
) : LiveEvent


class VideoPlayEvent(
    var tag: String = "",//标识
    var tagInt: PlayStatus = PlayStatus.STOP//0停止 播放 1
) : LiveEvent {
}
class TabPageEvent(
    val tag: String = "",//标识
    val tagInt: Int = 0
) : LiveEvent {
}
enum class PlayStatus{
    PLAY,STOP
}

class RefreshPageEvent(
    val tag: String = "",//标识
    val tagInt: Int = 0
) : LiveEvent {
}

class LocationEvent(
    val state: Boolean=false,
) : LiveEvent {
}

class LocationChangeEvent(
    val state: Boolean=false,
    var province:String?,
) : LiveEvent {
}

class HomeTabEvent(
    val tag: Int = 0
) : LiveEvent {
}
class HomeFragmentTabEvent(
    val tag: Int = 0
) : LiveEvent {
}

class ThreeLandingEvent(
    val content: String,
    val token: String,
    val openid: String,
    val tag: Int = -1,
    val name: String?="",
    val headerUrl: String?="",
) : LiveEvent {
}